import {createRouter, createWebHashHistory} from 'vue-router'
export default createRouter({  
  history: createWebHashHistory(),
  routes: [
    { path: "/", redirect: "/edit" },
    { path: "/test", name: "test", component: () => import('./views/test.vue') },
    { path: "/doc", name: "doc", component: () => import('./views/doc/traffic.vue') },

    { path: "/home", name: "home", component: () => import('./views/home/home.vue') },
    { path: "/super", name: "super", component: () => import('./views/super/index.vue') },
    { path: "/user", name: "user", component: () => import('./views/user/index.vue') },

    //subpage
	{ path: "/detail", name: "detail", component: () => import('./views/home/detail.vue') },
	{ path: "/city", name: "city", component: () => import('./views/home/city.vue') },
	{ path: "/srachPage", name: "srachPage", component: () => import('./views/home/srachPage.vue') },
	{ path: "/record", name: "record", component: () => import('./views/user/record.vue') },
	{ path: "/edit", name: "edit", component: () => import('./views/user/edit.vue') },
	
    { path: "/login", name: "login", component: () => import('./views/user/login.vue') },
    { path: "/register", name: "register", component: () => import('./views/user/register.vue') },
	// page
	{ path: "/article", name: "article", component: () => import('./page/article.vue') },
	{ path: "/vip", name: "vip", component: () => import('./page/vip.vue') },
  ]
})